package com.fortune.controller.app;

import com.faneui.common.exception.BusinessException;
import com.fortune.controller.AbstractController;
import com.fortune.dal.dao.BankDAO;
import com.fortune.dal.dao.CardDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;

@RestController
@RequestMapping("appusercenter")
public class AppUserCenterController extends AbstractController {
    @Autowired
    private HttpSession httpSession;

    @Autowired
    private BankDAO bankDAO;

    @Autowired
    private CardDAO cardDAO;

    @RequestMapping(value = "", method = RequestMethod.GET)
    public ModelAndView indexOfAll() throws BusinessException {
        ModelAndView mv = new ModelAndView("appusercenter");
        mv.addObject("menuFlag", "appusercenter");
        return mv;
    }


//    @RequestMapping(value = "/appcustcert", method = RequestMethod.GET)
//    public ModelAndView cert() throws BusinessException {
//        ModelAndView mv = new ModelAndView("appcustcert");
//        mv.addObject("menuFlag", "appusercenter");
//        return mv;
//    }
}
